package com.ty.user.starter.entity.vo;

import com.ty.user.starter.enums.MenuEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author minku
 * @since 2021-10-16
 */
@Data
public class MenuVo implements Serializable {

    private static final long serialVersionUID = -3023584091658354975L;
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("父id")
    private Long parentId;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("链接")
    private String url;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("排序")
    private Integer sort = 0;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态")
    private Boolean state = true;

    @ApiModelProperty("子菜单")
    private List<MenuVo> children;

    @ApiModelProperty(value = "菜单类型(0:菜单;1:按钮)")
    private MenuEnum menuType;

    @ApiModelProperty(value = "权限值")
    private String perm;
}
